import request from '@/utils/request'

//! 员工列表
export function employeeListAPI(params) {
  return request({
    url: '/park/sys/user',
    method: 'GET',
    params
  })
}

//! 角色列表 /park/sys/role
export function getPoleListAPI() {
  return request({
    url: '/park/sys/role',
    method: 'GET'
  })
}

//! 添加用户
export function addUserListAPI(data) {
  return request({
    url: '/park/sys/user',
    method: 'POST',
    data
  })
}

//! 删除用户
export function delUserListAPI(id) {
  return request({
    url: `/park/sys/user/${id}`,
    method: 'DELETE'
  })
}
//! 用户详情

export function userDetailListAPI(id) {
  return request({
    url: `/park/sys/user/${id}`
  })
}

//! 编辑用户
export function editUserListAPI(data) {
  return request({
    url: '/park/sys/user',
    method: 'PUT',
    data
  })
}

